<?php
/**
 * 应用程序路由配置
 *
 * Created by PhpStorm.
 * User: libin
 * Date: 2017/9/8
 * Time: 下午2:18
 */
return [
    // 首页
    'login' => [
        'method' => 'get',
        'action' => 'UserController@login'
    ],

    'do_login' => [
        'method' => 'post',
        'action' => 'UserController@login'
    ],

    'register' => [
    'method' => 'get',
    'action' => 'UserController@register'
    ],

    'do_register' => [
        'method' => 'post',
        'action' => 'UserController@register'
    ],

    // 首页
    'index' => [
        'method' => 'get',
        'action' => 'UserController@index'
    ]
];